package com.db;

import com.alibaba.excel.EasyExcel;
import com.model.DocumentInfo;

import java.io.File;
import java.util.Vector;

public class ExcelUtils {
    public static void writeToFile(Vector<DocumentInfo> data, String path){
        File file = new File(path);
        EasyExcel.write(file, DocumentInfo.class).sheet("数据").doWrite(data);
    }
}
